package IO;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.io.FileInputStream;
import java.io.IOException;

public class FinallyDemo2 {
    public static void main(String[] args) {
        System.out.println("start");
        FileInputStream fis = null;
        try{
            fis = new FileInputStream("file.txt");
        }catch (IOException e){
            System.out.println("IO解决了");
    }finally{
            try {
                fis.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        System.out.println("end");
    }
}
